import 'package:flutter/material.dart';

class Register1 extends StatefulWidget {
  Register1({Key key}) : super(key: key);
  @override
  _Register1State createState() => _Register1State();
}

class _Register1State extends State<Register1> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Register1'),
      ),
      body: Center(child: Text('Register1')),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          Navigator.pushNamed(context, '/register2');
        },
        child: Text('下一页'),
      ),
    );
  }
}
